//
//  ETextView.h
//  EPTool
//
//  Created by guoshiqing on 2018/4/13.
//  Copyright © 2018年 云数动能科技. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ETextView;

@interface ETextView : UITextView <UITextViewDelegate>

@property (copy, nonatomic) NSString *placeholder;
@property (assign, nonatomic) NSInteger maxLength;//最大长度
@property (strong, nonatomic) UILabel *placeholderLabel;
@property (strong, nonatomic) UILabel *wordNumLabel;
@property (strong, nonatomic) NSString *currentText;

//文字输入
@property (copy, nonatomic) void(^didChangeText)(ETextView *textView);
- (void)didChangeText:(void(^)(ETextView *textView))block;
- (void)setTitleFont:(CGFloat)font;

@end
